package com.bitejiuyeke.job_publish.model;

import com.bitejiuyeke.job_publish.common.PageRequest;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

@Data
@ToString
@NoArgsConstructor
public class User extends PageRequest {
    private Long id;

    private Long majorId;

    private String name;

    private String sNo;

    private Byte gender;

    @JsonIgnore
    private String password;

    @JsonIgnore
    private String salt;

    private String phoneNum;

    private String email;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date enrollment;

    private String avatarUrl;

    private String resumeUrl;

    private Byte isTeacher;

    private String tag;

    private Byte privacyState;

    private Integer sendCount;

    private Integer favoriteCount;

    private String remark;

    private Byte state;

    @JsonIgnore
    private Byte deleteState;

    private Date createTime;

    private Date updateTime;

    // 关联院系信息
    private College college;
    private Major major;

}